
package protocol.transactions;

import protocol.XoneProtocol;
import protocol.XoneServiceCode;

import com.netease.http.THttpRequest;

public class LogoutTransaction extends EncryptBaseTransaction {

    public LogoutTransaction() {
        super(TRANSACTION_TYPE_LOGOUT);
    }
    @Override
    protected void onXoneTransactionSuccess(int code, Object obj) {
        notifyMessage(XoneServiceCode.TRANSACTION_SUCCESS,null);
    }
    @Override
    void realOntransact() {
        THttpRequest request = XoneProtocol.getInstance().createLogoutRequest();
        sendRequest(request);
    }

}
